<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script type="text/javascript">
        var a = Math.pow(3, Math.pow(2, 2));
        console.log(a);
        var b = Math.pow(Math.pow(3, 2), 4);
        console.log(b);
    </script>
</body>

</html>